package aframe.utils;

import android.os.Environment;

public class SDCardUtils {
	private static boolean IS_CACHE_LOCAL = false;

	public static void setIsCacheLocal(boolean isCacheLocal) {
		IS_CACHE_LOCAL = isCacheLocal;
	}

	public static boolean sdCardCanUse() {
		return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED) && !IS_CACHE_LOCAL;
	}

	public static String getSdCardAbsolutePath() {
		return Environment.getExternalStorageDirectory().getAbsolutePath();
	}
}
